package cn.dbqn.service;

import cn.dbqn.dao.SupplierinfoMapper;
import cn.dbqn.entity.Supplierinfo;
import cn.dbqn.entity.View_gsxx;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SupplierinfoService {
    @Autowired
    SupplierinfoMapper supplierinfoMapper;

    //查询所有供商信息
    public List<View_gsxx> findAllGs(){
        return supplierinfoMapper.findAll();
    }
    //查询单个供商信息
    public View_gsxx gsxx(Integer sno){ return  supplierinfoMapper.gsxx(sno); }
    //新增供商信息
    public int addGsxx(Supplierinfo supplierinfo){return  supplierinfoMapper.addGsxx(supplierinfo);}
    //删除供商信息
    public int deleteGsxx(Integer sno){return  supplierinfoMapper.deleteGsxx(sno);}
    //修改供商信息
    public int updateGsxx(Supplierinfo supplierinfo){return supplierinfoMapper.updateGsxx(supplierinfo);};
}
